package com.nbpt.edu.commercesites.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.Position;
import pojo.Staff;
import pojo.Type;
import pojo.entity.StaffEntity;
import pojo.vo.StaffVo;

import java.util.List;

public interface StaffService extends IService<Staff> {
    Boolean login(String uName,String uPassword);
    Boolean register( Staff user);
    Position getPosition(String u_username);
    Staff getUser(String u_username);
    Boolean resetPassword(String u_username,String u_password);
    IPage<StaffVo> getCustomer(Integer current, Integer size);
    Boolean insetUser(@RequestBody StaffEntity staffEntity);
    Boolean deleteById(@PathVariable List<Long> ids);
    List<Long> getNumber();
    Boolean updateUser( StaffVo staffVo);
    List<String> getAllPosition();
}
